<?php
namespace app\shop\validate;


use think\Validate;

class Pin extends Validate
{
    protected $rule = [
        'goods_id' => 'require|number',
        'num' => 'require|number',
        'time' => 'require|number'
    ];

    protected $message = [
        'goods_id.require' => '请选择活动商品',
        'goods_id.number' => '活动商品错误',
        'num.require' => '请输入拼团人数',
        'num.number' => '拼团人数不正确',
        'time.require' => '请输入拼团时间',
        'time.number' => '拼团时间不正确'
    ];
}